package com.itheima.mp.controller;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@NoArgsConstructor
@AllArgsConstructor
@Data
public class Result<T> {

    private int code;
    private String msg;
    private T data;

    public static <T>  Result success(T data){
        return new Result(1,"成功",data);
    }
}
